package model

type ResourcePicture struct {
	Tag          string        `json:"tag" bson:"tag" binding:"required"`
	MapName      string        `json:"map_name" bson:"map_name"`
	SiteId       string        `json:"site_id" bson:"site_id"`
	DeviceCode   string        `json:"device_code" bson:"device_code"`
	Width        int           `json:"width" bson:"width"`
	Height       int           `json:"height" bson:"height"`
	Url          string        `json:"url" bson:"url"`
	PictureInfos []PictureInfo `json:"picture_infos" bson:"picture_infos"`
}

type PictureInfo struct {
	Index        int    `json:"index" bson:"index"`
	RelativePath string `json:"relative_path" bson:"relative_path"`
	StatusInfo   string `json:"status_info" bson:"status_info"`
}

func (ResourcePicture) TableName() string {
	return "t_data_resource_pictures"
}
